<script>
	import store from "@/store";
	import {
		mpUpData,
		systemInfo,
	} from '@/config/common.js'
	// import {
	// 	userInfos
	// } from '@/api/login.js'
	export default {
		globalData: {

		},
		async onLaunch() {
			//取出缓存数据
			store.commit('setCacheData');

			await systemInfo();
			if (uni.getStorageSync('token')) {
				// this.getUserInfos()
			}

			await this.$isResolve();
		},

		methods: {
			getUserInfos() {
				userInfos({}).then(res => {
					this.$store.commit('setUserInfo', res.data.info ? res.data.info : res.data);
				})
			},
		},
		onShow() {
			// #ifdef MP-WEIXIN
			mpUpData();
			// #endif
		},
		onHide() {

		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	@import "@/static/css/rest.css";

	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
	}

	.emptyImages {
		display: block;
		width: 300rpx;
		height: 335rpx;
		position: fixed;
		left: 50%;
		bottom: 200rpx;
		transform: translate(-50%, 0);
	}

	.isLoadMore {
		padding: 30rpx;
		color: #40a9ff;
		text-align: center;
	}

	::v-deep .navbar_view text.uicon-arrow-left {
		font-weight: bold !important;
	}

	button::after {
		border: none;
		box-shadow: none;
	}

	uni-swiper .uni-swiper-dot {
		width: 30rpx;
		height: 10rpx;
		border-radius: 2px !important;
	}

	uni-swiper .uni-swiper-dot-active {
		width: 30rpx;
		height: 10rpx;
		border-radius: 2px;
	}


	wx-swiper .wx-swiper-dot {
		width: 30rpx;
		height: 10rpx;
		border-radius: 2px !important;
	}

	wx-swiper .wx-swiper-dot-active {
		width: 30rpx;
		height: 10rpx;
		border-radius: 2px !important;
	}
</style>